header.header {
  background-color: #000;
  height: $headerH;
  line-height: $headerH;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  @include zIndexShadow(1);

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    display: block;
    height: 45px;
    line-height: 0;

    img {
      height: 100%;
    }
  }
  .menu-btn {
    display: none;
  }

  .close-nav {
    display: none;
  }

  .nav {
    display: flex;
  }

  .nav .item {
    position: relative;
    color: $color-brown;
    font-size: 1rem;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0);
    transition: all .3s;
    text-decoration: none;

    &:hover,
    &.active {
      background-color: rgba(255, 255, 255, 1);
      @include zIndexShadow(1);

      &:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 0;
        left: 0;
        bottom: 0;
        border-bottom: 3px solid $color-brown;
      }
    }
  }
}


@media (max-width: 750px) {
  header.header {
    .header-content {
      position: relative;
    }

    .nav {
      width: 100%;
      height: calc(100vh - 55px);
      left: 0;
      top: 55px;
      position: absolute;
      z-index: -1;
      flex-wrap: wrap;
      flex-direction: column;
      text-align: center;
      padding-top: 55px;
      background-color: rgba(0, 0, 0, 0.8);
      visibility: hidden;
      opacity: 0;
      transform: translateY(-50px);
      transition: all 0.2s ease;

      a.item {
        font-size: 1.2rem;

        &:hover,
        &.active {
          background: none;
          &:after {
            display: none;
          }
        }

        &.active {
          color: #fff;
        }

        &.mobile-hidden {
          display: none;
        }
      }

      &.is-show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
      }
    }

    .menu-btn {
      display: block;
      height: 55px;
      align-self: flex-start;
      position: relative;

      .iconfont {
        position: absolute;
        top: 0;
        right: 0;
        color: #fff;
        font-size: 1.2rem;
      }

      .icon-column {
        opacity: 1;
        visibility: visible;
        transition: all 0.2s ease;
      }
      .icon-close {
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
      }

      &.is-show {
        .icon-column {
          opacity: 0;
          visibility: hidden;
        }
        .icon-close {
          opacity: 1;
          visibility: visible;
        }
      }
    }

    .close-nav {
      display: block;
      position: absolute;
      top: 20px;
      right: 30px;
      color: #fff;

      .iconfont {
        font-size: 1.5rem;
      }
    }
  }
}
